
file(GLOB_RECURSE SRCS *.cpp *.h)
message(STATUS Engin2D:)
foreach(var ${SRCS})
    message(STATUS ${var})
endforeach(var ${SRCS})

include(${CMAKE_SOURCE_DIR}/3rd/imgui.cmake)
include(${CMAKE_SOURCE_DIR}/3rd/lua.cmake)

add_library(Engine2D STATIC ${SRCS} ${IMGUI_SRCS} ${LUA_SRCS})

target_include_directories(Engine2D PRIVATE 
    ${CMAKE_SOURCE_DIR}/Engine2D
    ${CMAKE_SOURCE_DIR}/3rd/sdl2/include
    ${IMGUI_INCLUDE_DIR}
    )
    
target_include_directories(Engine2D PUBLIC     
    ${CMAKE_SOURCE_DIR}/3rd/yamlcpp/include
    ${CMAKE_SOURCE_DIR}/3rd/glm/glm
    ${CMAKE_SOURCE_DIR}/3rd/spdlog/include
    ${CMAKE_SOURCE_DIR}/3rd/sol2/include
    ${LUA_INCLUDE_DIR}
)


target_link_libraries(Engine2D PUBLIC SDL2 yaml-cpp SDL2_image)